﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Cosmos.Hardware;

namespace COSIX.Graphics
{
    class CosmosVGA
    {
        private VGAScreen _scr = new VGAScreen();

        public int Colors { get { return _scr.Colors; } }

        public uint[] PaletteEntries;

        public void Test()
        {
           
        }

       /// <summary>
       /// Clears the screen
       /// </summary>
       /// <param name="color">Clear color.</param>
        public void Clear(int color)
        {
            _scr.Clear(color);
        }

        /// <summary>
        /// Set the given pixel to the given color.
        /// </summary>
        /// <param name="X"></param>
        /// <param name="Y"></param>
        /// <param name="Color"></param>
        public void SetPixel(int X, int Y, int Color)
        {
            _scr.SetPixel((uint)X, (uint)Y, (uint)Color);
        }
    }
}
